import request from '@/utils/request'

export const loadRole = function(pages) {
  return request.get('/sys/role', { params: pages })
}
export const loadNew = function(info) {
  return request.post('/sys/role', info)
}
export const simpleRole = function(id) {
  return request.get('/sys/role/' + id)
}
export const loadEdit = function(info) {
  return request.put('/sys/role/' + info.id, info)
}
export const sendDelete = function(id) {
  return request.delete('/sys/role/' + id)
}
